<template>
  <div>
    <div class="img-box">
      <img :src="item" alt="" v-for="item in imgList" :key="item" />
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref, onMounted } from 'vue'
onMounted(() => {
  window.api.apiOpenFileMes((arg) => {
    imgList.value = arg.map((item) => {
      return `data:image/*;base64,${item}`
    })
  })
})
const imgList = ref([])
</script>

<style lang="scss" scoped>
.img-box {
  img {
    width: 100px;
    height: 100px;
  }
}
</style>
<style lang="scss">
.img-box {
  img {
    width: 100px;
    height: 100px;
    margin: 10px;
  }
}
</style>
